package com.zf.powerjob.worker.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zf.powerjob.worker.entity.WorkflowInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 */
public interface WorkflowInfoMapper extends BaseMapper<WorkflowInfo> {


    /**
     * 根据 extra 字段查询 cron 类型工作流, 如果传空则查询所有cron 类型的工作流
     */
    List<WorkflowInfo> getCronWorkflows(@Param("extraList") List<String> extraList);

}
